package com.abso.mp3tunes.locker.ui.viewers;

import com.abso.mp3tunes.locker.core.data.Track;

/**
 * A specialized label provider for the playlist tree viewer.
 */
public class PlaylistViewerLabelProvider extends LockerViewerLabelProvider {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.abso.mp3tunes.locker.ui.viewers.LockerViewerLabelProvider#getText(java.lang.Object)
	 */
	public String getText(Object element) {
		if (element instanceof Track) {
			return getTrackText((Track) element, false, true);
		} else {
			return super.getText(element);
		}
	}

}
